package org.example.osproject01;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.skin.TableHeaderRow;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import org.example.osproject01.Object.PublicResource;

import java.io.IOException;

public class HelloApplication extends Application {
    public static Stage STAGE;
    public void init(){
        new PublicResource(100,5);
    }
    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 750, 550);
        scene.setFill(Color.TRANSPARENT);
        STAGE = stage;
        stage.initStyle(StageStyle.TRANSPARENT);//隐藏默认标题栏
        stage.setTitle("批处理进程管理器");
        stage.setScene(scene);
        stage.show();
    }
    public static void main(String[] args) {
        launch();
    }

}